const protocol = window.location.protocol;
const host = window.location.host;

const baseUrl = protocol + "//" + host;

let config = {};

if (process.env.NODE_ENV === "development") {
    config = {
        basicProxy: "/dev",
        originUrl: baseUrl,
        appAddr: baseUrl,
        imageAddr: baseUrl + "/App_Themes/Skin/images"
    }
} else {
    config = {
        basicProxy: baseUrl + "/message-center/",
        originUrl: baseUrl,
        appAddr: baseUrl + "/message-center/web/index.html",
        imageAddr: baseUrl + "/message-center/web/App_Themes/Skin/images"
    }
}
console.log(config)
window._BasicProxy = config.basicProxy;
export default config;